package org.zhu.useful.util;

import java.lang.reflect.Field;
import java.util.Arrays;

/**
 * Created by zhu yingzhi on 2017/9/8.
 */
public class ClassUtil {
    public static String getAllparameter(Class<?> cla) {

        Arrays.stream(cla.getDeclaredFields()).forEach(System.out::println);
        for (Field field : cla.getDeclaredFields()) {
            System.out.print(field.getName() + ",");
        }
        return null;
    }
}
